import React, { Component } from 'react'
import {Switch, Route} from 'react-router-dom'
import Layout from './page/Layout'
import Login from './page/Login'
export default class Router extends Component {
  render() {
    return (
      <>
        <Switch>
          <Route path='/index' component={Layout}></Route>
          <Route exact path='/login' component={Login}></Route>
        </Switch>
      </>
    )
  }
}
